package cn.edu.glut.choosethesis.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import cn.edu.glut.entity.Subject;
import cn.edu.glut.vo.SubjectToTeacherVO;

public interface SubjectRepository extends JpaRepository<Subject, String> {

	/**
	 * 报表类动态查询，详情见实现类
	 * @param pageable
	 * @param isSelect
	 * @param titleLike
	 * @param teacherId
	 * @return
	 */
	Page<SubjectToTeacherVO> findAllSubjectToTeacherVO(Pageable pageable, Boolean isSelect, String titleLike,
			String teacherId, String majorId, String studentId);

}
